package com.spa.infrastructure.service.wx;

public class Constant {

    public static final String NOTIFY_URL = "wx/payNotifyV3";
    public static final String CODE2SESSION = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code";
    public static final String ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    public static final String REFRESH_TOKEN = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";
    public static final String USERINFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /**
     * 获取用户手机号
     */
    public static final String PHONE_NUMBER = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN";

    public static final String TOKEN = "https://api.weixin.qq.com/cgi-bin/stable_token";
    /**
     * 获取jsapi_ticket，jsapi_ticket是公众号用于调用微信JS接口的临时票据
     */
    public static final String TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    /**
     * 公众号模版消息
     */
    public static final String TEMPLATE_MSG_SEND_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={TOKEN}";

    /**
     * 获取用户基本信息
     */
    public static final String WECHAT_USERINFO = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={TOKEN}&openid={OPENID}&lang=zh_CN";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;

}
